<template>
	<view class="contact">
		<image class="img" src="http://www.itcast.cn/2018czydz/images/gywmban.jpg"></image>
		<view class="info">
			<view @click="phone">联系电话：186-2161-9344 (点击拨打)</view>
			<view>工作地址：安徽省滁州市琅琊区宋城街麒麟画院二楼</view>
		</view>
		<map class="map" :longitude="longitude" :scale="scale" :latitude="latitude" :markers="markers"></map>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				longitude: 118.313341,
				latitude: 32.315872,
				scale: 16,
				markers: [
					{
						longitude: 118.313341,
						latitude: 32.315872,
						callout: {
							content: '麒麟画院',
							color: 'red',
							display: 'ALWAYS',
							fontSize: 20
						}
					}
				]
			}
		},
		methods: {
			phone() {
				uni.makePhoneCall({
					phoneNumber: "18621619344"
				})
			}
		}
	}
</script>

<style lang="scss">
	.contact {
		.img {
			width: 750rpx;
			height: 320rpx;
		}
		.info {
			font-size: 30rpx;
			padding: 10rpx 20rpx;
			view {
				line-height: 80rpx;
				border-bottom: 1px solid #eee;
			}
		}
		.map {
			width: 750rpx;
			height: 750rpx;
		}
	}

</style>
